You can use a pixel pattern resource to define a multicolored pattern to display with Color QuickDraw routines. A pixel pattern resource is a resource of type 'ppat' . All 'ppat' resources should be marked purgeable, and they must have resource IDs greater than 128. Use the GetPixPat function (described on GetPixPat ) to create a pixel pattern defined in a 'ppat' resource. Color QuickDraw uses the information you specify to create a PixPat record in memory. (The PixPat record is described on PixPat .)
This section describes the structure of this resource after it has been compiled by the Rez resource compiler, available from APDA. However, you typically use a high-level tool such as the ResEdit application, also available through APDA, to create 'ppat' resources. You can then use the DeRez decompiler to convert your 'ppat' resources into Rez input when necessary.
The compiled output format for a 'ppat' resource is illustrated in Figure 4-16 .
Figure 16 Format of a compiled pixel pattern ( 'ppat' ) resource
The compiled version of a 'ppat' resource contains the following elements: